package com.demo.mvc.action;


import com.demo.mvcframework.webmvc.annotation.MaginaAutoWired;
import com.demo.mvcframework.webmvc.annotation.MaginaController;
import com.demo.mvcframework.webmvc.annotation.MaginaRequestMapping;
import com.demo.mvcframework.webmvc.annotation.MaginaRequestParam;
import com.demo.service.impl.IDemoServer;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by cass on 2018/6/25.
 */
@MaginaController
@MaginaRequestMapping("/demo")
public class DemoAction {

    @MaginaAutoWired
    private IDemoServer demoServer;

    @MaginaRequestMapping("/query")
     public void query(HttpServletRequest request,HttpServletResponse response,
                       @MaginaRequestParam("name")String name){

    }

    @MaginaRequestMapping("/insert")
    public void insert(HttpServletRequest request,HttpServletResponse response,
                       @MaginaRequestParam("a") String a, @MaginaRequestParam("b")String b){

    }

    @MaginaRequestMapping("/del")
    public void del(HttpServletRequest request,HttpServletResponse response,
                    @MaginaRequestParam("c")String c){

    }
}
